package com.jikexueshe.crm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
	
	/**
	 * 通用页面跳转controller
	 * @return
	 */
	//http://localhost:9090/index.do --> WEB-INF/jsp/index.jsp
	//http://localhost:9090/html_abc.do --> 	 WEB-INF/jsp/html/abc.jsp
	@RequestMapping("{page}")
	public String page(@PathVariable("page")String page) {
		page = page.replace("_", "/");
		return page;
	}

}
